﻿using System;
using System.ComponentModel;
using System.Windows;
using StockholmsStad.Windows.UI.Infrastructure;

namespace StockholmsStad.Windows.UI.Models
{
    internal class ParvisSplashModel
    {
        
        /// <summary>
        /// Creates a new instance of <c>LateNightSplashModel</c>.
        /// </summary>
        public ParvisSplashModel()
        {
            Message = "Parvis startas...";
        }


        public string FullVersion {
            get 
            {
                return String.Format("Version {0}",
                    VersionHelper.AssemblyVersion);
            }
        }

        public string Message { get; internal set; }

        public Visibility PreviewVisibility
        {
            get
            {
#if DEBUG
                return Visibility.Visible;
#else
                return Visibility.Hidden;
#endif
            }
        }

        #region INotifyPropertyChanged Members

        private event PropertyChangedEventHandler propertyChangedEvent;

        public event PropertyChangedEventHandler PropertyChanged {
            add { propertyChangedEvent += value; }
            remove { propertyChangedEvent -= value; }
        }

        protected void OnPropertyChanged(string prop) {
            if (propertyChangedEvent != null)
                propertyChangedEvent(this, new PropertyChangedEventArgs(prop));
        }

        #endregion
    }
}
